<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>ip::basic_resolver_results::const_iterator</title>
    <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
    <link rel="home" href="../../../index.html" title="Asio">
    <link rel="up" href="../ip__basic_resolver_results.html" title="ip::basic_resolver_results">
    <link rel="prev" href="cend.html" title="ip::basic_resolver_results::cend">
    <link rel="next" href="const_reference.html" title="ip::basic_resolver_results::const_reference">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%">
    <tr>
        <td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="cend.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                     href="../ip__basic_resolver_results.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="const_reference.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
    <div class="titlepage">
        <div>
            <div><h4 class="title">
                <a name="asio.reference.ip__basic_resolver_results.const_iterator"></a><a class="link"
                                                                                          href="const_iterator.html"
                                                                                          title="ip::basic_resolver_results::const_iterator">ip::basic_resolver_results::const_iterator</a>
            </h4></div>
        </div>
    </div>
    <p>
        <a class="indexterm" name="asio.indexterm.ip__basic_resolver_results.const_iterator"></a>
        The
        type of an iterator into the range.
    </p>
    <pre class="programlisting"><span class="keyword">typedef</span> <span
            class="identifier">basic_resolver_iterator</span><span class="special">&lt;</span> <span class="identifier">protocol_type</span> <span
            class="special">&gt;</span> <span class="identifier">const_iterator</span><span class="special">;</span>
</pre>
    <h6>
        <a name="asio.reference.ip__basic_resolver_results.const_iterator.h0"></a>
        <span><a name="asio.reference.ip__basic_resolver_results.const_iterator.types"></a></span><a class="link"
                                                                                                     href="const_iterator.html#asio.reference.ip__basic_resolver_results.const_iterator.types">Types</a>
    </h6>
    <div class="informaltable">
        <table class="table">
            <colgroup>
                <col>
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>
                    <p>
                        Name
                    </p>
                </th>
                <th>
                    <p>
                        Description
                    </p>
                </th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/difference_type.html"
                           title="ip::basic_resolver_iterator::difference_type"><span class="bold"><strong>difference_type</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        The type used for the distance between two iterators.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/iterator_category.html"
                           title="ip::basic_resolver_iterator::iterator_category"><span class="bold"><strong>iterator_category</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        The iterator category.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/pointer.html"
                           title="ip::basic_resolver_iterator::pointer"><span
                                class="bold"><strong>pointer</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        The type of the result of applying operator-&gt;() to the iterator.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/reference.html"
                           title="ip::basic_resolver_iterator::reference"><span class="bold"><strong>reference</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        The type of the result of applying operator*() to the iterator.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/value_type.html"
                           title="ip::basic_resolver_iterator::value_type"><span
                                class="bold"><strong>value_type</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        The type of the value pointed to by the iterator.
                    </p>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <h6>
        <a name="asio.reference.ip__basic_resolver_results.const_iterator.h1"></a>
        <span><a name="asio.reference.ip__basic_resolver_results.const_iterator.member_functions"></a></span><a
            class="link"
            href="const_iterator.html#asio.reference.ip__basic_resolver_results.const_iterator.member_functions">Member
        Functions</a>
    </h6>
    <div class="informaltable">
        <table class="table">
            <colgroup>
                <col>
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>
                    <p>
                        Name
                    </p>
                </th>
                <th>
                    <p>
                        Description
                    </p>
                </th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/basic_resolver_iterator.html"
                           title="ip::basic_resolver_iterator::basic_resolver_iterator"><span class="bold"><strong>basic_resolver_iterator</strong></span></a>
                        <span class="silver">[constructor]</span>
                    </p>
                </td>
                <td>
                    <p>
                        Default constructor creates an end iterator. <br> <span class="silver"> —</span><br> Copy
                        constructor. <br> <span class="silver"> —</span><br> Move constructor.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/operator__star_.html"
                           title="ip::basic_resolver_iterator::operator *"><span
                                class="bold"><strong>operator *</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        Dereference an iterator.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/operator_plus__plus_.html"
                           title="ip::basic_resolver_iterator::operator++"><span
                                class="bold"><strong>operator++</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        Increment operator (prefix). <br> <span class="silver"> —</span><br> Increment operator
                        (postfix).
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/operator_arrow_.html"
                           title="ip::basic_resolver_iterator::operator-&gt;"><span
                                class="bold"><strong>operator-&gt;</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        Dereference an iterator.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/operator_eq_.html"
                           title="ip::basic_resolver_iterator::operator="><span class="bold"><strong>operator=</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        Assignment operator. <br> <span class="silver"> —</span><br> Move-assignment operator.
                    </p>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <h6>
        <a name="asio.reference.ip__basic_resolver_results.const_iterator.h2"></a>
        <span><a
                name="asio.reference.ip__basic_resolver_results.const_iterator.protected_member_functions"></a></span><a
            class="link"
            href="const_iterator.html#asio.reference.ip__basic_resolver_results.const_iterator.protected_member_functions">Protected
        Member Functions</a>
    </h6>
    <div class="informaltable">
        <table class="table">
            <colgroup>
                <col>
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>
                    <p>
                        Name
                    </p>
                </th>
                <th>
                    <p>
                        Description
                    </p>
                </th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/dereference.html"
                           title="ip::basic_resolver_iterator::dereference"><span
                                class="bold"><strong>dereference</strong></span></a>
                    </p>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/equal.html"
                           title="ip::basic_resolver_iterator::equal"><span
                                class="bold"><strong>equal</strong></span></a>
                    </p>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/increment.html"
                           title="ip::basic_resolver_iterator::increment"><span class="bold"><strong>increment</strong></span></a>
                    </p>
                </td>
                <td>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <h6>
        <a name="asio.reference.ip__basic_resolver_results.const_iterator.h3"></a>
        <span><a name="asio.reference.ip__basic_resolver_results.const_iterator.protected_data_members"></a></span><a
            class="link"
            href="const_iterator.html#asio.reference.ip__basic_resolver_results.const_iterator.protected_data_members">Protected
        Data Members</a>
    </h6>
    <div class="informaltable">
        <table class="table">
            <colgroup>
                <col>
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>
                    <p>
                        Name
                    </p>
                </th>
                <th>
                    <p>
                        Description
                    </p>
                </th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/index_.html"
                           title="ip::basic_resolver_iterator::index_"><span class="bold"><strong>index_</strong></span></a>
                    </p>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/values_.html"
                           title="ip::basic_resolver_iterator::values_"><span
                                class="bold"><strong>values_</strong></span></a>
                    </p>
                </td>
                <td>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <h6>
        <a name="asio.reference.ip__basic_resolver_results.const_iterator.h4"></a>
        <span><a name="asio.reference.ip__basic_resolver_results.const_iterator.friends"></a></span><a class="link"
                                                                                                       href="const_iterator.html#asio.reference.ip__basic_resolver_results.const_iterator.friends">Friends</a>
    </h6>
    <div class="informaltable">
        <table class="table">
            <colgroup>
                <col>
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>
                    <p>
                        Name
                    </p>
                </th>
                <th>
                    <p>
                        Description
                    </p>
                </th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/operator_not__eq_.html"
                           title="ip::basic_resolver_iterator::operator!="><span
                                class="bold"><strong>operator!=</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        Test two iterators for inequality.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../ip__basic_resolver_iterator/operator_eq__eq_.html"
                           title="ip::basic_resolver_iterator::operator=="><span
                                class="bold"><strong>operator==</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        Test two iterators for equality.
                    </p>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <p>
        The <a class="link" href="../ip__basic_resolver_iterator.html" title="ip::basic_resolver_iterator"><code
            class="computeroutput"><span class="identifier">ip</span><span class="special">::</span><span
            class="identifier">basic_resolver_iterator</span></code></a> class
        template is used to define iterators over the results returned by a resolver.
    </p>
    <p>
        The iterator's value_type, obtained when the iterator is dereferenced,
        is:
    </p>
    <pre class="programlisting"><span class="keyword">const</span> <span
            class="identifier">basic_resolver_entry</span><span class="special">&lt;</span><span class="identifier">InternetProtocol</span><span
            class="special">&gt;</span>
</pre>
    <h6>
        <a name="asio.reference.ip__basic_resolver_results.const_iterator.h5"></a>
        <span><a name="asio.reference.ip__basic_resolver_results.const_iterator.thread_safety"></a></span><a
            class="link"
            href="const_iterator.html#asio.reference.ip__basic_resolver_results.const_iterator.thread_safety">Thread
        Safety</a>
    </h6>
    <p>
        <span class="emphasis"><em>Distinct</em></span> <span class="emphasis"><em>objects:</em></span> Safe.
    </p>
    <p>
        <span class="emphasis"><em>Shared</em></span> <span class="emphasis"><em>objects:</em></span> Unsafe.
    </p>
    <h6>
        <a name="asio.reference.ip__basic_resolver_results.const_iterator.h6"></a>
        <span><a name="asio.reference.ip__basic_resolver_results.const_iterator.requirements"></a></span><a class="link"
                                                                                                            href="const_iterator.html#asio.reference.ip__basic_resolver_results.const_iterator.requirements">Requirements</a>
    </h6>
    <p>
        <span class="emphasis"><em>Header: </em></span><code class="literal">asio/ip/basic_resolver_results.hpp</code>
    </p>
    <p>
        <span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
    </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%">
    <tr>
        <td align="left"></td>
        <td align="right">
            <div class="copyright-footer">Copyright © 2003-2022 Christopher M. Kohlhoff<p>
                Distributed under the Boost Software License, Version 1.0. (See accompanying
                file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
            </p>
            </div>
        </td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="cend.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                     href="../ip__basic_resolver_results.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="const_reference.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
